package com.eleadmin.order.controller;

import com.eleadmin.common.core.annotation.OperationLog;
import com.eleadmin.damon.utils.results.PageResult2;
import com.eleadmin.common.core.web.BaseController;
import com.eleadmin.common.core.web.JsonResult;
import com.eleadmin.common.system.entity.User;
import com.eleadmin.order.entity.Ocean;
import com.eleadmin.order.service.OceanService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


/**
 *
 * 海运
 * @author : Doman
 * @date : 2023-04-24 11:26:09
 * @version ：1.0
 */

@Api(tags = "海运")
@RestController
@RequestMapping("/api/nt/order/ocean")
public class OceanNtController extends BaseController {

    @Autowired
    private OceanService oceanService;


//    @ApiOperation("导出客户海运账单")
//    @GetMapping("/exportsOcean")
    public void exportsOcean(Ocean ocean, HttpServletResponse response, HttpServletRequest request) throws Exception{
        oceanService.exportsOcean(ocean, new User(1, 11),response, request);
    }


}
